package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.po.StorePO;
import com.tarena.lbs.business.pojo.query.StoreQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StoreRepository {

    void save(StorePO storePO);

    List<StorePO> pageList(StoreQuery query);

    BusinessPO selectByBusinessId(Integer businessId);

    StorePO selectByStoreId(Integer id);

    void updateById(StorePO storePO);

    List<StorePO> getStoreByCity(Long areaId);

    void deleteById(Integer id);

    List<StorePO> pageList(Long areaId, String storeName);
}
